import request from '@/utils/request'

// 查询极客侠小程序评论列表
export function listHairComment(query) {
  return request({
    url: '/system/hairComment/list',
    method: 'get',
    params: query
  })
}

// 查询极客侠小程序评论详细
export function getHairComment(id) {
  return request({
    url: '/system/hairComment/' + id,
    method: 'get'
  })
}

// 新增极客侠小程序评论
export function addHairComment(data) {
  return request({
    url: '/system/hairComment',
    method: 'post',
    data: data
  })
}

// 修改极客侠小程序评论
export function updateHairComment(data) {
  return request({
    url: '/system/hairComment',
    method: 'put',
    data: data
  })
}

// 删除极客侠小程序评论
export function delHairComment(id) {
  return request({
    url: '/system/hairComment/' + id,
    method: 'delete'
  })
}


// 查询小程序评论接口
export function xcxListHairComment(query) {
  return request({
    url: '/xcx/comment/getPostCommentList',
    method: 'get',
    params: query
  })
}
